"use strict";

let Koa = require('koa');
let bodyparser = require('koa-bodyparser');
let staticConfig = require('koa-static');
let templating = require('./templating');
let controllers = require('./controllers');

let app = new Koa();

app.use(staticConfig(__dirname+'/static'));
app.use(bodyparser());
app.use(templating);
app.use(controllers());


let port = 3564;

app.listen(port);

console.log(`http://127.0.0.1:${port}`);